﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DoAnTriTueNhanTao
{
    class MatrixInput
    {
        private int[,] _matrix;

        public int[,] matrix
        {
            get { return _matrix; }
            set { _matrix = value; }
        }
        private int[] _heuristic;

        public int[] heuristic
        {
            get { return _heuristic; }
            set { _heuristic = value; }
        }
        private int _nPoint;

        public int nPoint
        {
            get { return _nPoint; }
            set { _nPoint = value; }
        }
        private int _startPoint;

        public int startPoint
        {
            get { return _startPoint; }
            set { _startPoint = value; }
        }
        private int _endPoint;

        public int endPoint
        {
            get { return _endPoint; }
            set { _endPoint = value; }
        }

        public void makeSampleInput()
        {
            nPoint = 12;
            matrix = new int[nPoint, nPoint];
            for (int i = 0; i < nPoint; i++)
            {
                for (int j = 0; j < nPoint; j++)
                {
                    matrix[i,j] = -1;
                }
            }
            matrix[1,0] = 2;
            matrix[2, 0] = 2;
            matrix[3, 1] = 1;
            matrix[3, 2] = 8;
            matrix[3, 4] = 2;
            matrix[4, 7] = 1;
            matrix[4, 8] = 9;
            matrix[5, 2] = 2;
            matrix[5, 6] = 5;
            matrix[7, 9] = 4;
            matrix[7, 10] = 4;
            matrix[8, 5] = 5;
            matrix[9, 10] = 15;
            matrix[10, 8] = 3;
            matrix[11, 3] = 3;
            matrix[11, 4] = 9;
            matrix[11, 9] = 1;

            heuristic = new int[nPoint];
            heuristic[0] = 8;
            heuristic[1] = 11;
            heuristic[2] = 5;
            heuristic[3] = 8;
            heuristic[4] = 4;
            heuristic[5] = 4;
            heuristic[6] = 0;
            heuristic[7] = 6;
            heuristic[8] = 6;
            heuristic[9] = 11;
            heuristic[10] = 9;
            heuristic[11] = 12;

            startPoint = 11;
            endPoint = 6;
        }
    }
}
